/*
 ColorChooser.m
 
 The model class that contains the color values needed for drawing.
 
 Created by David Kikuta.
 */

#import "ColorChooser.h"

@implementation ColorChooser
@synthesize red, green, blue;

- (void)setPremadeValues:(int)index {
	switch(index) {
		case 0:
			red = 1.0;
			green = 0.0;
			blue = 0.0;
			break;
		case 1:
			red = 0.0;
			green = 1.0;
			blue = 0.0;
			break;
		case 2:
			red = 0.0;
			green = 0.0;
			blue = 1.0;
			break;
		case 3:
			red = 0.0;
			green = 0.0;
			blue = 0.0;
			break;
		case 4:
			red = 1.0;
			green = 1.0;
			blue = 1.0;
			break;
		default:
			break;
			
	}
}

@end
